using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace webapp4U.UI.Controls
{
    public partial class ControlsSearch : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            txtKeyword.Attributes.Add("onclick", "this.value=''");
        }


        protected void btSearch_Click(object sender, ImageClickEventArgs e)
        {
            string kq = txtKeyword.Text.Trim().Replace("keyword","");
            int CateID = Globals.ConvertToInt32(dlCategory.SelectedItem.Value);
            Response.Redirect(Globals.ApplicationPath + "Products/Search.aspx?kq=" + kq + "&CateID=" + CateID + "&ChatlieuID=" + dlChatlieu.SelectedItem.Value + "&PriceValue=" + dlGia.SelectedItem.Value);
        }
    }
}